/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package tcubeappclient;

import BusinessLogic.CustomerBeanLocal;
import BusinessLogic.PartnerBeanLocal;
import BusinessLogic.TCubeBeanLocal;
import javax.ejb.EJB;

/**
 *
 * @author James
 */
public class Main {

    /**
     * @param args the command line arguments
     */
//    @EJB
//    public static CustomerBeanLocal customerBean;
//    @EJB
//    public static PartnerBeanLocal partnerBean;
    @EJB
    public static TCubeBeanLocal tcubeBean;
//    
//    public Main() {
//        
//    }
    
    public static void main(String[] args) {      
//        new Selection().start(args);
        for (int i = 0 ; i < 5 ; i++) {
            tcubeBean.createTCubePrivilege("Create TCube Account", "Create TCube Account");
            tcubeBean.createTCubePrivilege("Create TCube Privilege", "Create TCube Privilege");
            tcubeBean.createTCubePrivilege("Create Partner Privilege", "Create Partner Privilege");
            tcubeBean.createTCubePrivilege("Register Partner", "Register Partner");
            tcubeBean.createTCubePrivilege("Grant Privilege", "Grant Privilege"); 
        }
        
        int[] listOfPrivileges = new int[5];
        for (int i = 0 ; i < 5 ; i++) {
            listOfPrivileges[i] = i;
        }
        
        tcubeBean.createTCubeRole(1, "Super admin", "Super admin", listOfPrivileges);
        tcubeBean.registerAccount("jamesboyz", "jamestran", "G0845679N", "James", "Tran", "Male", "65", "9789 7094", "dungtran511@gmail.com", "Singapore", "Singapore", 999, 1);
    
       
    }
}
